package com.jtny.nytb.equipment.dto.device;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author 智慧能源中心 - 伍天宇
 * @package com.jtny.nytb.energymonitor.equipment.dto.device
 * @fileName EquipmentDataParamDTO.java
 * @createTime 2023年10月08日 15:37
 * @Copyright© 2023 jtny
 * 江投能源技术研究院 版权所有
 */
@Data
@ApiModel("设备参量关系")
@AllArgsConstructor
@NoArgsConstructor
public class EquipmentDataParamDTO implements Serializable {
    /**
     * 设备 ID
     */
    @ApiModelProperty("设备id")
    private Long equipmentId;

    /**
     * 设备code
     */
    @ApiModelProperty("设备code")
    private String equipmentCode;

    /**
     * 数据参数核心
     */
    @ApiModelProperty("数据参量")
    private DataParamCoreDTO dataParamCore;

    public EquipmentDataParamDTO(Long equipmentId, String equipmentCode, Long dataParamId, String dataParamCode, String reportIdentifier, Boolean powerCheckDisplay) {
        this.equipmentId = equipmentId;
        this.equipmentCode = equipmentCode;
        this.dataParamCore = new DataParamCoreDTO(dataParamId, dataParamCode, reportIdentifier, powerCheckDisplay);
    }
}
